<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateInformationReservationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('information_reservations', function (Blueprint $table) {
          $table->charset = 'utf8';
          $table->collation = 'utf8_general_ci';
          $table->increments('id',11)->comment("主键id");
          $table->string('name',255)->comment("预约者姓名");
          $table->string('phone_number',255)->comment("预约者手机号");
          $table->timestamp('service_time')->comment("预约的服务时间");
          $table->text('content')->comment("预约内容");
          $table->integer('user_id')->nullable(true)->comment("预约者id");
          $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('information_reservations');
    }
}
